/////////////////////////////////////////////////////////////////////////////
//
// XepdtLogConsole.h
//
/////////////////////////////////////////////////////////////////////////////

#pragma once

#include "xepdt.h"
#include <string>

class XEPDT_API CXepdtLogConsole
{
// Construction
public:
	CXepdtLogConsole();
	virtual ~CXepdtLogConsole();

	enum TEXT_COLOR {
		TEXT_BLUE   = ( WORD ) 0x0001,
		TEXT_GREEN  = ( WORD ) 0x0002,
		TEXT_CYAN   = ( WORD ) 0x0003,
		TEXT_RED    = ( WORD ) 0x0004,
		TEXT_PURPLE = ( WORD ) 0x0005,
		TEXT_YELLOW = ( WORD ) 0x0006,
		TEXT_WHITE  = ( WORD ) 0x0007
	};

// Operation 
public:
	BOOL Init();
	VOID OutputXepdtInfo( std::string strInfo, TEXT_COLOR textColor = TEXT_GREEN );
	VOID CleanConsoleScreen();

// Implementation
private:
	BOOL m_bInit;

	UINT   m_nIndex;
	HANDLE m_hStdOUt;
};